IWIcon.Css:= 'ui-icon ui-icon-alert';
IWCGJQDialog.Width:= 230;
IWCGJQDialog.Height:= 180;
IWCGJQDialog.JQDialogOptions.Title:= 'Empty the recycle bin?';
IWLabelDialog.Caption:= 'These items will be permanently deleted and cannot be recovered. Are you sure?';
iButtom:= IWCGJQDialog.JQDialogOptions.Buttons.Add;
iButtom.Text:= 'Delete All';
iButtom.OnClick.OnEvent:= OnClickRunActionDialogEvent;
iButtom:= IWCGJQDialog.JQDialogOptions.Buttons.Add;
iButtom.Text:= 'Cancel';
iButtom.OnClick.OnEvent:= OnClickCloseDialogEvent;

procedure TIWDialogFrame.OnClickCloseDialogEvent(Sender: TObject; AURLParams: TStringList);
begin
  IWCGJQDialog.Visible:= False;
end;

procedure TIWDialogFrame.OnClickRunActionDialogEvent(Sender: TObject; AURLParams: TStringList);
begin
  WebApplication.ShowMessage('Run your action!');
  IWCGJQDialog.Visible:= False;
end;